-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove long/int relic #37420
Remove long/int relic #37420
Conversation
in py2, long and int were different types. In py3, only int remains, with long a synonym in cython.
Wouldn't it make sense to get rid of |
int_to_Z used to work in Py2 on the type "int" there which were integers that fit in a word. In Py3 there is no such type anymore and "int" now is what "long" used to be -- -arbitrary length integers. In Py3 int_to_Z is buggy: sage: itoZ=sage.rings.integer.int_to_Z() sage: itoZ(1000000000000000000000) OverflowError
Yes, it's worse. |
Maybe keep an alias |
well ... int_to_Z was exported for I guess in cython |
Documentation preview for this PR (built with commit 18ace4e; changes) is ready! 🎉 |
OK, testing seems successful. Ready to be merged, I think. Review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, cleaning up code is always nice.
And I agree that keeping (alias) Also there's a function |
Yes I think it is: |
in py2, long and int were different types. In py3, only int remains, with long a synonym in cython.
📝 Checklist
⌛ Dependencies